package com.zhuoyue.system.domain.po;

import com.zhuoyue.common.core.domain.BaseEntity;
import com.zhuoyue.system.domain.dto.DevicePoReqDTO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.time.LocalDateTime;

/**
 * @author Administrator
 */
@Data
public class TblDevicePo extends BaseEntity {
    private Integer pageNum;
    private Integer pageSize;
    private String gatewayMac;
    private String deviceMac;
    private String deviceName;
    private String deviceType;
    private String account;


    private String organizationCode;
    private LocalDateTime switchTime;
    private String homeId;
    private String orderBySwitchTime;
    private Long deptId;

    public TblDevicePo dtoToDo(DevicePoReqDTO devicePoReq) {
        BeanUtils.copyProperties(devicePoReq, this);
        return this;
    }
}
